package com.cqq.print.business.dao.impl;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.cqq.print.business.dao.domain.PProduce;
import com.cqq.print.business.dao.mapper.PProduceMapper;


/**
 * @author generated
 * @date 2015-07-01
 */


@Repository(value="pProduceDao")
public class PProduceDaoImpl extends com.cqq.common.core.base.BaseDao implements com.cqq.print.business.dao.PProduceDao{

             @Autowired
             private PProduceMapper pProduceMapper;



    public int deleteByPrimaryKey(Integer id){
        return pProduceMapper.deleteByPrimaryKey(id);
    }

    public int insertSelective(PProduce record){
    	pProduceMapper.insertSelective(record);
        return record.getId();
    }

    public PProduce selectByPrimaryKey(Integer id){
        return pProduceMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(PProduce record){
        return pProduceMapper.updateByPrimaryKeySelective(record);
    }

	
	public List<PProduce> queryProduces(Map<String, Object> map) {
		return pProduceMapper.queryProduces(map);
	}

	
	public int queryProducesCount(Map<String, Object> map) {
		return pProduceMapper.queryProducesCount(map);
	}

	
	public PProduce queryProduceById(Integer id) {
		return pProduceMapper.queryProduceById(id);
	}

	
	public PProduce queryProduceByOrderNum(String orderNum) {
		return pProduceMapper.queryProduceByOrderNum(orderNum);
	}



}